﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RequestCenterMgr.SPIO
{
    public partial class SPgzww : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                try
                {
                    string strlinkid = string.Empty,//唯一标识，广州网维
                        strmobile = string.Empty,//手机号
                        strcontent = string.Empty,//内容 
                        strspnum = string.Empty,//通道号码
                        strstatus = string.Empty;//状态报告DELIVRD表示成功


                    if (Request.QueryString["L"] != null)
                        strlinkid = Request.QueryString["L"].ToString();
                    if (Request.QueryString["P"] != null)
                        strmobile = Request.QueryString["P"].ToString();
                    if (Request.QueryString["Msg"] != null)
                        strcontent = Request.QueryString["Msg"].ToString();
                    if (Request.QueryString["B"] != null)
                        strspnum = Request.QueryString["B"].ToString();

                    if (!string.IsNullOrEmpty(strlinkid) && !string.IsNullOrEmpty(strmobile) && !string.IsNullOrEmpty(strspnum))
                    {
                        MM.DBUtility.BLSqlDataSPIO.ReceiveDatahjn(strlinkid, strmobile, strcontent, strspnum, strstatus);
                        Response.Write("ok");
                    }
                }
                catch (Exception ex)
                {
                    MM.Common.LogHelp.WriteLogInfo(ex.ToString());
                    Response.Write("err");
                }
            }
        }
    }
}
